<?php
namespace app\backend\model;

use think\Config;
use think\Db;
use think\Loader;
use think\Model;
use traits\model\SoftDelete;
use app\backend\org\Recursion;

class People extends Model
{
    use SoftDelete;
    static protected $deleteTime = 'delete_time';

    //部门查询列表
    protected $table = 'ls_people';
    public function getAll($team_id)
    {
        $data=$this
            ->field('people_id,name_cn,name_en,dictum_cn,dictum_en,s_img_url,b_img_url,department_id,team_id')
            ->where(["team_id"=>$team_id,"delete_time"=>["exp","is null"]])
            //->select()
        ;
        return $data;
    }
}